<?php
session_start ();
$_SESSION ['pathway'] = '..';
include ("../header.php");

echo "<script type='text/javascript'>//<![CDATA[
function calcul(rubrique){
var rubriqueright = rubrique.concat('right');
for(i=0;i<document.frm_sara.elements[rubriqueright].length;i++){	// appel par le 'name'
   if(document.frm_sara.elements[rubriqueright][i].checked){
	r=(1*document.frm_sara.elements[rubriqueright][i].value);
	}
}
var rubriqueleft = rubrique.concat('left');
for(i=0;i<document.frm_sara.elements[rubriqueleft].length;i++){
   if(document.frm_sara.elements[rubriqueleft][i].checked){
	l=(1*document.frm_sara.elements[rubriqueleft][i].value);
	}
}
s=(r+l)/2;
x=document.getElementById('score'.concat(rubrique));x.value=s; // On affecte
}
//]]></script>";

?><a href="<?php echo $_SESSION['pathway']; ?>/index.php">Start</a>
>
<a href="<?php echo $_SESSION['pathway']; ?>/start.php">Home</a>
>
<a
	href="./page_principale.php?form=<?php echo $_SESSION['form'];?>#annexes">Form <?php echo $_SESSION['form'];?></a>
> AMBUS 
<?php

$score = 0;
if (! isset ( $_SESSION ['id'] ) or $_SESSION ['acces_genetique'] < 1) {
	echo "<table><tr><td>Session expired</td></tr>";
	echo "<tr><td><a href='" . $_SESSION ['pathway'] . "/index.php'>Start</a></td></tr></table>";
} else {
	?>

<form name='frm_ambus'
	action="page_principale.php?form=<?php echo $_SESSION['form']; ?>&amp;from=ambus#annexes"
	method='post'>

	<table class='principale'>
		<tr>
			<td><h2>ANNEX6 : AMBUS (AMBUlatory Score)</h2></td>
		</tr>

		<tr>
			<td><b>Nombre de mètres parcourus en 5 secondes</b></td>
		
		
		<tr>
			<td>Sans aide</td>
			<td>Avec aide</td>
		</tr>

		<tr>
			<td><label><input type='radio' name='ambus_without_help' value='0' />&#155;
					5</label> <br /> <label><input type='radio'
					name='ambus_without_help' value='1' />&#155; 4</label> <br /> <label><input
					type='radio' name='ambus_without_help' value='2' />&#155; 3</label>
				<br /> <label><input type='radio' name='ambus_without_help'
					value='3' />&#155; 2</label> <br /> <label><input type='radio'
					name='ambus_without_help' value='4' />&#155; 1</label> <br /> <label><input
					type='radio' name='ambus_without_help' value='5' />0</label></td>

			<td><label><input type='radio' name='ambus_with_help' value='0' />&#155;
					5</label> <br /> <label><input type='radio' name='ambus_with_help'
					value='1' />&#155; 4</label> <br /> <label><input type='radio'
					name='ambus_with_help' value='2' />&#155; 3</label> <br /> <label><input
					type='radio' name='ambus_with_help' value='3' />&#155; 2</label> <br />
				<label><input type='radio' name='ambus_with_help' value='4' />&#155;
					1</label> <br /> <label><input type='radio' name='ambus_with_help'
					value='5' />0</label></td>
		</tr>


		<tr>
			<td><input type='submit' value='Send'></td>
		</tr>



	</table>
</form>



<?php
}
include ("../footer.php");
?>
